<script setup lang="ts">
import { ElButton } from "element-plus";
import { orderDrawer, outboundDrawer, onShow } from "../drawer-manager";

const handleOrderDrawer = () => {
  orderDrawer.create({});
};
const handleOutboundDrawer = () => {
  outboundDrawer.create({});
};
onShow((hasChange, events) => {
  if (hasChange) {
    console.log("hasChange", events);
  }
});
</script>

<template>
  <div class="listPage">
    <el-button @click="handleOrderDrawer">order drawer</el-button>
    <el-button @click="handleOutboundDrawer">outbound drawer</el-button>
  </div>
</template>
